import requests


def get_order_no(self, auth_code):
    t.get_token()
    # auth_code = str(input("在此输入微信/支付宝付款条码：\n"))
    url3 = 'http://open.dairphone.cn/device/back_scanning'
    data3 = {
        "sn": "SMIT3B2019816000090",
        "price": 1,
        "auth_code": auth_code,
        "token": self.token,
        "version": "3.4.0"
    }
    result3 = requests.post(url3, data=data3, headers=self.headers)
    results3 = result3.json()
    self.order_no = results3['data']['order_no']